package com.jinznet.transit.controller.vo;


public class Result   {

    public static final int SUCCESS = 0;  //成功
    
    public static final int FAIL = 1; 
    
    private int code;
    
    private String msg;
    
    private Object data;

	/**
	 * 
	 */
	public Result() {
		super();
		code = SUCCESS;
		
	}
	
	/**
	 * @param code
	 * @param msg
	 */
	public Result(int code, String msg) {
		super();
		this.code = code;
		this.msg = msg;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	@Override
	public String toString() {
		return "Result [code=" + code + ", msg=" + msg + "]";
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}


	
}
